const app = getApp()
Component({
    properties: {
        msg:{
            type:String
        },
        head_img:{
            type:String
        }
    },
    data: {
        img:"../../images/返回.png",
        navBarHeight: app.globalData.navBarHeight,
        menuRight: app.globalData.menuRight,
        menuBotton: app.globalData.menuBotton,
        menuHeight: app.globalData.menuHeight,
    },
    lifetimes: {
        // 生命周期函数，可以为函数，或一个在methods段中定义的方法名
        attached: function (e) {
            // console.log(document); 
         },
      },
    methods: {
        back:function(e){
            var c= e.currentTarget.dataset.src
            var a = c.replace(/[^\u4e00-\u9fa5]/gi,'')
            if(a == "返回"){
                wx.navigateBack({
                  delta: 1,
                })
            }

        }
    }
})